Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Ban sun.misc.Unsafe #4

Merged
merged 3 commits into from
Dec 22, 2023
Merged

Ban sun.misc.Unsafe #4

merged 3 commits into from
Dec 22, 2023

Conversation

kiritofeng
Copy link
Member

Ban sun.misc.Unsafe by default. It can be re-enabled by passing the unsafe option.

If you're using sun.misc.Unsafe in a contest-programming setting, odds are you're doing something silly anyways...

@kiritofeng
Copy link
Member Author

Tested this against DMOJ/judge-server@d50d7fb and it successfully blocks Unsafe.

Copy link
Member

@quantum5 quantum5 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks fine, some nits. Yava is disgusting...

@kiritofeng kiritofeng merged commit 8f6de08 into master Dec 22, 2023
2 checks passed
@Xyene Xyene deleted the ban-unsafe branch June 3, 2024 03:32
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants